home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 026-050 / scopedisk33 / rxenv / main.c < prev    next >
C/C++ Source or Header  |  1995-03-18  |  1KB  |  54 lines

  1. /*     External Definitions and Calls     */
  2.  
  3. #include "LazyAll.h"
  4.  
  5. GLOBAL struct Window        *window;
  6.  
  7. /*
  8.         Module name = Main
  9.         Last Change was on 10/6/88
  10. */
  11.  
  12. int
  13. main()
  14. {
  15. ULONG    events, waitmask;
  16. static int    check1;
  17.  
  18. /* 
  19.     *************************************************************
  20.         Do the Initial Setup
  21.         Open the Libraries and Debugs
  22.  
  23.         You Supply "Initialize()"!!!
  24.     ************************************************************* 
  25. */
  26.  
  27.     Initialize();
  28.  
  29. /*
  30.     *************************************************************
  31.         Do the Wait for Messages Bit
  32.     ************************************************************* 
  33. */
  34.  
  35.     check1 = TRUE;    /*    Check for Intuition events */
  36.     waitmask = (1 << window->UserPort->mp_SigBit);
  37.  
  38.     { while ( check1 ) {
  39.         events = Wait(waitmask);
  40.  
  41.         { if ( events & INT_IN ) {
  42.             /* You supply "Intuition_Handler()"!!!! */
  43.             check1 = Intuition_Handler();
  44.         ; } }
  45.     ; } }
  46.  
  47. /* ************************************************************* */
  48. /* **************      Close what was opened      **************** */
  49. /* ************************************************************* */
  50.  
  51.     /* You supply "Close()"!!!! */
  52.     Close();
  53. }
  54.